Skip to content

DOC : DA028241 - getSituationRatio() core-patch debt + credit-note scope limit (suivi #748)#749

Merged
ATM-NicolasV merged 2 commits into
21.0_louktafrom
FIX/SUPPORT/DA028241/situation-ratio-denominator
Jun 19, 2026
Merged

DOC : DA028241 - getSituationRatio() core-patch debt + credit-note scope limit (suivi #748)#749
ATM-NicolasV merged 2 commits into
21.0_louktafrom
FIX/SUPPORT/DA028241/situation-ratio-denominator

Conversation

@ATM-NicolasV

Copy link
Copy Markdown

Suivi documentaire de la PR #748 (déjà mergée). Documentation seule, aucune logique modifiée.

Formalise deux points relevés en revue de #748 :

Modifs : docblock de getSituationRatio() + ligne NOTE dans ChangeLog_loukta.

🤖 Generated with Claude Code

ATM-NicolasV and others added 2 commits June 19, 2026 15:44
…ation of getSituationRatio()

Make explicit, in the getSituationRatio() docblock and in ChangeLog_loukta,
two things flagged during PR #748 review:
- O3 (core debt): this method + its consumers in core/lib/pdf.lib.php are a
  Loukta-local backport of upstream PR Dolibarr#36503 and will be overwritten
  on the next core upgrade; drop them once Dolibarr#36503 lands upstream.
- O4 (scope): the fix only corrects the mode-1 denominator and does NOT handle
  credit notes (get_prev_progress() still adds credit-note percents), so a
  situation cycle containing a credit note may still yield a wrong/negative delta.

Documentation only, no logic change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…kers

Bracket the whole getSituationRatio() method (added as a Loukta-local core
backport of upstream PR Dolibarr#36503) with:
  // LOUKTA DA028241 - START ... // LOUKTA DA028241 - END
so the local core patch can be located and removed in one block on the next
Dolibarr core upgrade. The markers also cover the previously-merged PR #748
denominator change, which was not wrapped.

Comment-only, no logic change. Committed with --no-verify (claudemd gate
blocks on missing root CLAUDE.md; bypass authorized by user).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ATM-NicolasV
ATM-NicolasV merged commit a6a5428 into 21.0_loukta Jun 19, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant